﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserForm.aspx.cs" Inherits="ERP.UserForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>User form</h2>
<br />
<asp:Label runat="server" ID="lblFirstName" AssociatedControlID="txtFirstName" meta:resourcekey="FirstName"></asp:Label><asp:TextBox runat="server" ID="txtFirstName" ></asp:TextBox>
<asp:RegularExpressionValidator ValidationExpression="^.{0,50}$" ID="validatorFirstNameRegex" runat="server" ControlToValidate="txtFirstName" Text="השם יכול להיות עד 50 תווים*" CssClass="failureNotification"></asp:RegularExpressionValidator>
<br />
<asp:Label runat="server" ID="lblLastName" AssociatedControlID="txtLastName" meta:resourcekey="LastName"></asp:Label> <asp:TextBox runat="server" ID="txtLastName" ></asp:TextBox>
<asp:RegularExpressionValidator ValidationExpression="^.{0,50}$" ID="validatorLastNameRegex" runat="server" ControlToValidate="txtLastName" Text="השם יכול להיות עד 50 תווים*" CssClass="failureNotification"></asp:RegularExpressionValidator>
<br />
<asp:Label runat="server" ID="lblEmail" AssociatedControlID="txtEmail" meta:resourcekey="Email"></asp:Label> <asp:TextBox runat="server" ID="txtEmail" ></asp:TextBox>
<asp:RequiredFieldValidator ID="validatorEmail" runat="server" ControlToValidate="txtEmail" Text="שדה חובה*" CssClass="failureNotification"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ValidationExpression="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}" ID="validatorEmailRegex" runat="server" ControlToValidate="txtEmail" Text="האימייל אינו חוקי*" CssClass="failureNotification"></asp:RegularExpressionValidator>
<br />
<asp:Label runat="server" ID="lblPassword" AssociatedControlID="txtPassword" meta:resourcekey="Password"></asp:Label> <asp:TextBox runat="server" ID="txtPassword" ></asp:TextBox>
<asp:RequiredFieldValidator ID="validatorPassword" runat="server" ControlToValidate="txtPassword" Text="שדה חובה*" CssClass="failureNotification"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ValidationExpression="^.{6,50}$" ID="validatorPasswordRegex" runat="server" ControlToValidate="txtPassword" Text="הסיסמא אינה חוקית*" CssClass="failureNotification"></asp:RegularExpressionValidator>

<br />
<br />
<asp:Label runat="server" ID="lblRoles" AssociatedControlID="checkboxlistRoles" meta:resourcekey="Roles"></asp:Label>
<br />
<asp:CheckBoxList ID="checkboxlistRoles" runat="server"></asp:CheckBoxList>
<br />
<asp:Label runat="server" ID="lblPermissions" AssociatedControlID="checkboxlistPermissions" meta:resourcekey="Permissions"></asp:Label>
<asp:CheckBoxList ID="checkboxlistPermissions" runat="server"></asp:CheckBoxList>
<br />
<br />
<asp:Button runat="server" ID="btnSubmit" OnClick="btnSubmit_OnClick" Text="Submit" /><br />
<asp:Label runat="server" ID="lblMessage" CssClass="failureNotification" Visible="false" ></asp:Label>
</asp:Content>
